package com.coolxi.entity;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class Flower {

    private Integer flowerId;

    @NotEmpty(message = "花名不能为空;")
    @NotNull(message = "需要填写花名;")
    private String flowerName;

    @NotEmpty(message = "花语不能为空;")
    @NotNull(message = "需要填写花语;")
    @Size(min = 6,max = 200,message = "花语应为6到200字节;")
    private String flowerMeans;

    private String flowerImgAddress;

    private Integer flowerSaves;

    public Integer getFlowerId() {
        return flowerId;
    }

    public void setFlowerId(Integer flowerId) {
        this.flowerId = flowerId;
    }

    public String getFlowerName() {
        return flowerName;
    }

    public void setFlowerName(String flowerName) {
        this.flowerName = flowerName == null ? null : flowerName.trim();
    }

    public String getFlowerMeans() {
        return flowerMeans;
    }

    public void setFlowerMeans(String flowerMeans) {
        this.flowerMeans = flowerMeans == null ? null : flowerMeans.trim();
    }

    public String getFlowerImgAddress() {
        return flowerImgAddress;
    }

    public void setFlowerImgAddress(String flowerImgAddress) {
        this.flowerImgAddress = flowerImgAddress == null ? null : flowerImgAddress.trim();
    }

    public Integer getFlowerSaves() {
        return flowerSaves;
    }

    public void setFlowerSaves(Integer flowerSaves) {
        this.flowerSaves = flowerSaves;
    }
}